import {POST,GET} from "./request.js"

/**
 报名
 sport_id=1&section_id=1&name=Andy
 */
export const getSportEnter = (data)=>{
	return GET('/sport/enter',data);
}

/**
 首页
 */
export const getSportIndex = (data)=>{
	return GET('/sport/index',data);
}

/**
 课程列表
 sport_id=1&section_id=1
 */
export const getSportSection = (data)=>{
	return GET('/sport/section',data);
}

/**
 我的证书
 */
export const getSportCert = (data)=>{
	return GET('/sport/cert',data);
}

/**
 证书详细
 */
export const getSportCertDetail = (data)=>{
	return GET('/sport/cert_detail',data);
}


/**
 支付
/sport/pay
sport_id=1&sport_course_user_id=6&pay_type=1
 */
export const getSportPay = (data)=>{
	return GET('/sport/pay',data);
}

/**
 订单查询
/sport/order?
sport_id=1&sport_user_id=6
 */
export const getSportOrder = (data)=>{
	return GET('/sport/order',data);
}